<template>
    <div class=" info_box">
        <p>
            <span>商品ID：</span>
            <i>{{bb.id}}
            </i>
        </p>
        <p>
            <span>商品分类：</span>
            <i>{{bb.lei}}</i>

        </p>
        <p>
            <span>商品名称：</span>
            <i>{{bb.xinxi}}</i>
        </p>
        <p>
            <span>自定义名称：</span>
            <i><input type="text"></i>
        </p>
        <p>
            <span>分类管理：</span>
            <i>
                <select>
                    <option value ="女鞋">女鞋</option>
                    <option value ="女装">女装</option>
                    <option value="美妆">美妆</option>
                    <option value="运动">运动</option>
                </select>
            </i>
        </p>
        <h5>价格与规格</h5>
        <div class="info_xinxi">
            <p> 商品spu信息 </p>
            <div class="xxxx">
                <p>
                    <span>主图</span>
                    <span style="width:300px">商品名称</span>
                    <span>在售价</span>
                    <span>月销量</span>
                    <span>库存</span>
                </p>
                <p>
                    <span>
                        <img :src="bb.imag" alt="">
                    </span>
                    <span style="width:300px">
                        {{bb.xinxi}}
                    </span>
                    <span>
                        ￥{{bb.jiage}}元
                    </span>
                    <span>
                        {{suiji()}}件
                    </span>
                    <span>
                        {{suiji()}}件
                    </span>
                </p>
            </div>
        </div>
        
    </div>
</template>

<script>
export default {
    props:['bb'],
    methods:{
        suiji(){
            return parseInt(Math.random()*10000)
        }
    }

};
</script>

<style lang="scss" scoped>
.info_box{
    padding-top: 30px;
    p{
        display: flex;
        height: 50px;
        align-items: center;
        span{
            font-size: 14px;
            font-weight: 700;
            width: 130px;
            text-align: right;
        }
        i{
            margin-left: 20px;
            font-size: 16px;
            font-style: normal;
            font-weight: 600;
        }
    }
    h5{
        text-align: left;
        font-size: 18px;
        padding-left: 10px;
    }
    .info_xinxi{
            border: 1px solid #ddd;
            margin-left: 30px;
            min-height: 300px;
            border-radius: 5px;
        >p{
            margin: 0;
            background: #ddd;
            font-weight: 700;
            padding-left: 20px;
            border-top-left-radius: 5px;
        }
        .xxxx{
            span{
                text-align: center;
                img{
                    width: 50px;
                    height: 50px;
                };
            }
        }
    }
}
input{
    height: 20px;
}
select{
    width: 100px;
    height: 25px;
    font-size: 20px;
}
</style>